package com.caigou.enums;

public class Constant {

    public final static String SMS_PRE_KEY = "caigou-cms:sms:code:";

    public final static String COLLECTION_USER_KEY = "cms_collection_user_%s";

    public final static String COLLECTION_ARTICLE_KEY = "cms_collection_article_%s";
    public final static String COLLECTION_ARTICLE_KEY_PREFIX = "cms_collection_user_*";

    public final static String LIKES_USER_KEY = "cms_likes_user_%s";

    public final static String LIKES_ARTICLE_KEY = "cms_likes_article_%s";
    public final static String LIKES_ARTICLE_KEY_PREFIX = "cms_likes_user_*";

    public final static String MY_READ_MESSAGE_KEY = "cms:message:read:%s";

    public final static String ARTICLE_COMMENT_KEY = "cms:article:comment:%s";

    public final static String CMS_ARTICLE_QUEUE = "cms_article_queue_t";
    public final static String CMS_KEYWORD_QUEUE = "cms_keyword_queue_t";

    public final static String TOKEN_PREFIX_KEY = "cms_token_%s_%s";

    public final static String ADD_ARTICLE = "新增";
    public final static String UPDATE_ARTICLE = "更新";
    public final static String DELETE_ARTICLE = "删除";

    public final static int FUNCTION_TYPE = 1;//功能操作权限
    public final static int MANAGE_TYPE = 2;//频道栏目管理权限
    public final static int PUBLISH_TYPE = 3;//页面发布权限


    public final static int PLATE_TYPE = 4;//页面发布权限  1频道2、栏目、3、分组4、板块


    public final static int PLAT_GOV = 1;//官网
    public final static int PLAT_APP = 2;//app
    public final static int PLAT_COMMENT = 3;//官网评论配置

    public final static int STRUCTURED_DATA = 1; //结构化数据(根权限包含子权限)
    public final static int UNSTRUCTURED_DATA = 0;//非结构化数据(用户权限不分一二级)


}
